import { configDefaults, defineConfig } from 'vitest/config';
import * as path from 'path';

export default defineConfig({
    test: {
        globals: true,
        environment: 'node',
        coverage: {
            exclude: [...configDefaults.exclude, 'docs/**', 'test/**', '**/index.ts'],
        },
        testTimeout: Infinity,
    },
    resolve: {
        alias: {
            '~': path.resolve(__dirname, './src'),
        },
    },
});
